import request from '@/utils/request'

// 查询就诊检测指标列表 /dev-api/system/visit/detection/list
export function listDetectionVisit(query) {
  return request({
    url: '/system/visit/detection/list',
    method: 'get',
    params: query
  })
}

//获取就诊检测指标详细信息 /dev-api/system/visit/detection/{visitDetectionId}
export function getDetectionVisit(visitDetectionId) {
  return request({
    url: '/system/visit/detection/' + visitDetectionId,
    method: 'get'
  })
}

//新增就诊检测指标 /dev-api/system/visit/detection  /dev-api/system/visit/detection/addAll
export function addDetectionVisit(data) {
  return request({
    url: '/system/visit/detection/addAll',
    method: 'post',
    data: data
  })
}

//修改就诊检测指标 /dev-api/system/visit/detection
export function updateDetectionVisit(data) {
  return request({
    url: '/system/visit/detection',
    method: 'put',
    data: data
  })
}

// 删除就诊检测指标 /dev-api/system/visit/detection/{visitDetectionIds}
export function delDetectionVisit(visitDetectionIds) {
  return request({
    url: '/system/visit/detection/' + visitDetectionIds,
    method: 'delete'
  })
}
///dev-api/system/visit/detection/listNotHaveDevice //查询没有绑定设备的就诊检测指标列表
export function listNotHaveDevice(query) {
  return request({
    url: '/system/visit/detection/listNotHaveDevice',
    method: 'get',
    params: query
  })
}